package com.andy.beef.ui.main.viewmodel

import com.andy.module.base.BasePageListViewModel
import com.andy.module.network.ApiPagerResponse
import com.andy.module.network.ApiResponse
import com.andy.beef.ui.main.api.MainApiService
import com.andy.beef.ui.main.api.mainService
import com.andy.beef.ui.main.bean.ServicePointBean

/**
 * @creator:LuoFan
 * @date:2022/6/6
 * @description:
 */
class ChooseServicePointViewModel : BasePageListViewModel<ServicePointBean>() {

    override suspend fun genRequest(): ApiResponse<ApiPagerResponse<ServicePointBean>> {
        return mainService.getServicePointList(MainApiService.URL_CHOOSE_SERVICE_POINT_LIST, params)
    }
}